package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.DataMainPicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ApiModel(value = "图片表param")
public class DataMainPicpParam extends BeanCovert<DataMainPicEntity> implements Serializable {
    @ApiModelProperty(notes = "主键")
    @NotNull(message="主键不能为空!",groups = {Update.class})
    private Long id;

    @ApiModelProperty(notes = "图片id")
    @NotNull(message="图片id不能为空!",groups = {Add.class})
    @Size(max = 64 , message = "图片id长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String picId;

    @ApiModelProperty(notes = "删除标志")
    private Boolean deleted = false;

    public interface Add {

    }

    public interface Update {

    }

}